﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;

/// <summary>
/// Summary description for SimpleItemTemplate
/// </summary>
public class SimpleItemTemplate : Control, System.Web.UI.INamingContainer, IDataItemContainer
{
    private object _CurrentDataItem;

	public SimpleItemTemplate(object currentItem)
	{
        _CurrentDataItem = currentItem;
	}
        
    #region IDataItemContainer Members

    public object DataItem
    {
        get { return _CurrentDataItem; }
    }

    public int DataItemIndex
    {
        get
        {
            throw new Exception
                ("The method or operation is not implemented.");
        }
    }

    public int DisplayIndex
    {
        get
        {
            throw new Exception
                ("The method or operation is not implemented.");
        }
    }

    #endregion
}